// 编写好规则
export const rules = {
  username: [
    {
      required: true,
      message: "用户名是必传内容~",
      trigger: "blur"
    },
    {
      pattern: /^[a-z0-9]{5,15}$/,
      message: "用户名必须是5~15个字母或者数字~",
      trigger: "blur"
    }
  ],
  password: [
    {
      required: true,
      message: "密码是必传内容~",
      trigger: "blur"
    },
    {
      pattern: /^[a-z0-9]{3,}$/,
      message: "用户名必须是3位以上的字母或者数字~",
      trigger: "blur"
    }
  ]
}
